﻿using System;
using System.IO;
using Microsoft.Xna.Framework.Audio;
using MP3Sharp;

namespace Terraria.ModLoader.Audio
{
	// Token: 0x02000276 RID: 630
	public class MusicStreamingMP3 : MusicStreaming
	{
		// Token: 0x060019F2 RID: 6642 RVA: 0x004270EC File Offset: 0x004252EC
		public MusicStreamingMP3(byte[] data)
		{
			MP3Stream mp3Stream = new MP3Stream(new MemoryStream(data));
			this.instance = new DynamicSoundEffectInstance(mp3Stream.Frequency, (AudioChannels)mp3Stream.ChannelCount);
			this.stream = mp3Stream;
		}
	}
}
